<ui:composition xmlns="http://www.w3.org/1999/xhtml"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:c="http://java.sun.com/jstl/core"
     xmlns:fmt="http://java.sun.com/jstl/fmt"
     xmlns:x="http://java.sun.com/jstl/xml"
     xmlns:fn="http://java.sun.com/jstl/functions"
     xmlns:a4j="http://richfaces.org/a4j"
     xmlns:rich="http://richfaces.org/rich"
     xmlns:gape="http://componentes.gape/component/gape">
     
	<rich:dropDownMenu>
		<f:facet name="label">
			<h:panelGroup>
				<h:graphicImage value="/files/configuration.png" styleClass="pictureMenu"/>
				<h:outputText value="#{msg.configurationLabel}" />
			</h:panelGroup>
		</f:facet>
		<rich:menuItem submitMode="none">
			<a4j:commandLink action="#{navigation.navega}" value="#{msg.menuUserLabel}" data="#{navigation.openError}" 
							 oncomplete="if(data){javascript:Richfaces.showModalPanel('panelError');}" reRender="panelError">
				<f:setPropertyActionListener value="#{'user'}" target="#{navigation.mbean}" />
				<f:setPropertyActionListener value="#{'open'}" target="#{navigation.metodo}" />
				<c:choose>
					<c:when test="${strategy.strategyChosen}">
						<f:setPropertyActionListener value="#{0}" target="#{user.back}" />
					</c:when>						
					<c:otherwise>
						<f:setPropertyActionListener value="#{1}" target="#{user.back}" />
					</c:otherwise>
				</c:choose>				
			</a4j:commandLink>								
		</rich:menuItem>
		<rich:menuItem submitMode="none">
			<a4j:commandLink action="#{navigation.navega}" value="#{msg.menuOrganizationLabel}" data="#{navigation.openError}" 
							 oncomplete="if(data){javascript:Richfaces.showModalPanel('panelError');}" reRender="panelError">
				<f:setPropertyActionListener value="#{'organization'}" target="#{navigation.mbean}" />
				<f:setPropertyActionListener value="#{'searchOrganization'}" target="#{navigation.metodo}" />
				<c:choose>
					<c:when test="${strategy.strategyChosen}">
						<f:setPropertyActionListener value="#{0}" target="#{organization.back}" />
					</c:when>						
					<c:otherwise>
						<f:setPropertyActionListener value="#{1}" target="#{organization.back}" />
					</c:otherwise>
				</c:choose>
			</a4j:commandLink>							
		</rich:menuItem>
	</rich:dropDownMenu>
	
	<rich:menuItem value="#{msg.menuHelpLabel}" submitMode="none" icon="/files/help.png" selectClass="menuSelected" iconClass="menuItem" style="padding: 3px 6px;" labelClass="labelMenu">
	</rich:menuItem>
	
</ui:composition>